import request from '@/config/axios'

// /product/roll/create
export const createRoll = async (data: any) => {
  return await request.post({ url: `/product/roll/create`, data })
}
// /product/roll/page
export const getRollList = async (params: any) => {
  return await request.get({ url: `/product/roll/page`, params })
}
// /product/roll/get
export const getRoll = async (params: any) => {
  return await request.get({ url: `/product/roll/get`, params })
}
// /product/roll-comment/create
export const createRollComment = async (data: any) => {
  return await request.post({ url: `/product/roll-comment/create`, data })
}
// /product/roll/update
export const updateRoll = async (data: any) => {
  return await request.put({ url: `/product/roll/update`, data })
}
// /product/roll/delete
export const deleteRoll = async (id: any) => {
  return await request.delete({ url: `/product/roll/delete?id=` + id })
}
// /system/user/dept-user-tree
export const getDeptUserTree = async (params: any) => {
  return await request.get({ url: `/system/user/dept-user-tree`, params })
}
// /product/roll-comment/delete
export const deleteRollComment = async (id: any) => {
  return await request.delete({ url: `/product/roll-comment/delete?id=` + id })
}
